﻿using System;
using System.Text;

namespace HslCommunication.Profinet.IDCard
{
	/// <summary>
	/// 身份证的信息类
	/// </summary>
	// Token: 0x0200009A RID: 154
	public class IdentityCard
	{
		/// <summary>
		/// 名字
		/// </summary>
		// Token: 0x170001C3 RID: 451
		// (get) Token: 0x06000B91 RID: 2961 RVA: 0x0004436C File Offset: 0x0004256C
		// (set) Token: 0x06000B92 RID: 2962 RVA: 0x00044374 File Offset: 0x00042574
		public string Name { get; set; }

		/// <summary>
		/// 性别
		/// </summary>
		// Token: 0x170001C4 RID: 452
		// (get) Token: 0x06000B93 RID: 2963 RVA: 0x0004437D File Offset: 0x0004257D
		// (set) Token: 0x06000B94 RID: 2964 RVA: 0x00044385 File Offset: 0x00042585
		public string Sex { get; set; }

		/// <summary>
		/// 身份证号
		/// </summary>
		// Token: 0x170001C5 RID: 453
		// (get) Token: 0x06000B95 RID: 2965 RVA: 0x0004438E File Offset: 0x0004258E
		// (set) Token: 0x06000B96 RID: 2966 RVA: 0x00044396 File Offset: 0x00042596
		public string Id { get; set; }

		/// <summary>
		/// 民族
		/// </summary>
		// Token: 0x170001C6 RID: 454
		// (get) Token: 0x06000B97 RID: 2967 RVA: 0x0004439F File Offset: 0x0004259F
		// (set) Token: 0x06000B98 RID: 2968 RVA: 0x000443A7 File Offset: 0x000425A7
		public string Nation { get; set; }

		/// <summary>
		/// 生日
		/// </summary>
		// Token: 0x170001C7 RID: 455
		// (get) Token: 0x06000B99 RID: 2969 RVA: 0x000443B0 File Offset: 0x000425B0
		// (set) Token: 0x06000B9A RID: 2970 RVA: 0x000443B8 File Offset: 0x000425B8
		public DateTime Birthday { get; set; }

		/// <summary>
		/// 地址
		/// </summary>
		// Token: 0x170001C8 RID: 456
		// (get) Token: 0x06000B9B RID: 2971 RVA: 0x000443C1 File Offset: 0x000425C1
		// (set) Token: 0x06000B9C RID: 2972 RVA: 0x000443C9 File Offset: 0x000425C9
		public string Address { get; set; }

		/// <summary>
		/// 发证机关
		/// </summary>
		// Token: 0x170001C9 RID: 457
		// (get) Token: 0x06000B9D RID: 2973 RVA: 0x000443D2 File Offset: 0x000425D2
		// (set) Token: 0x06000B9E RID: 2974 RVA: 0x000443DA File Offset: 0x000425DA
		public string Organ { get; set; }

		/// <summary>
		/// 有效期日期的起始日期
		/// </summary>
		// Token: 0x170001CA RID: 458
		// (get) Token: 0x06000B9F RID: 2975 RVA: 0x000443E3 File Offset: 0x000425E3
		// (set) Token: 0x06000BA0 RID: 2976 RVA: 0x000443EB File Offset: 0x000425EB
		public DateTime ValidityStartDate { get; set; }

		/// <summary>
		/// 有效期日期的结束日期
		/// </summary>
		// Token: 0x170001CB RID: 459
		// (get) Token: 0x06000BA1 RID: 2977 RVA: 0x000443F4 File Offset: 0x000425F4
		// (set) Token: 0x06000BA2 RID: 2978 RVA: 0x000443FC File Offset: 0x000425FC
		public DateTime ValidityEndDate { get; set; }

		/// <summary>
		/// 头像信息
		/// </summary>
		// Token: 0x170001CC RID: 460
		// (get) Token: 0x06000BA3 RID: 2979 RVA: 0x00044405 File Offset: 0x00042605
		// (set) Token: 0x06000BA4 RID: 2980 RVA: 0x0004440D File Offset: 0x0004260D
		public byte[] Portrait { get; set; }

		/// <summary>
		/// 返回表示当前对象的字符串
		/// </summary>
		/// <returns>字符串</returns>
		// Token: 0x06000BA5 RID: 2981 RVA: 0x00044418 File Offset: 0x00042618
		public override string ToString()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append("姓名：" + this.Name);
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append("性别：" + this.Sex);
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append("民族：" + this.Nation);
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append("身份证号：" + this.Id);
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append(string.Format("出身日期：{0}年{1}月{2}日", this.Birthday.Year, this.Birthday.Month, this.Birthday.Day));
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append("地址：" + this.Address);
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append("发证机关：" + this.Organ);
			stringBuilder.Append(Environment.NewLine);
			stringBuilder.Append(string.Format("有效日期：{0}年{1}月{2}日 - {3}年{4}月{5}日", new object[]
			{
				this.ValidityStartDate.Year,
				this.ValidityStartDate.Month,
				this.ValidityStartDate.Day,
				this.ValidityEndDate.Year,
				this.ValidityEndDate.Month,
				this.ValidityEndDate.Day
			}));
			stringBuilder.Append(Environment.NewLine);
			return stringBuilder.ToString();
		}
	}
}
